package com.david.entity;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Size;

/**
 * @author David
 */
@Data
public class Message {

    private Integer id;

    @Size(min = 5, max = 50, message = "上传的图片的名称太长了！！")
    private String file;

    @Length(min = 1, max = 10, message = "输入的昵称长度不合法")
    private String title;

    @Length(min = 1, max = 30, message = "输入的留言不合法")
    private String remark;

    private String time;

}
